package top.rish.rib.base.config;


import com.zaxxer.hikari.HikariDataSource;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;

import javax.sql.DataSource;

@Configuration
public class DataBaseConfig {

    @Bean(name="rib_database", typed=true)
    public DataSource rib_database(@Inject("${rib.database}") HikariDataSource ds) {
        return ds;
    }


}
